package org.springblade.modules.admin.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.List;

/**
    * 维保检查项历史操作记录
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_maintain_check_record",autoResultMap = true)
public class MaintainCheckRecord extends TenantEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 检查项历史记录id
	 */
	@ApiModelProperty(value = "检查项历史记录id")
	private Long checkHistoryId;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private Long userId;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
	private String recordLog;
	/**
	 * 记录数据结果
	 */
	@ApiModelProperty(value = "记录数据结果")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private JSONObject recordDataValue;

	@TableField(exist = false)
	private Long planId;

	@TableField(exist = false)
	private String userName;

	@TableField(exist = false)
	private String recordUserName;

}
